import Vue from 'vue'
import App from './App.vue'
import router from "./router"
import Vuex from 'vuex'

import axios from "axios"
import Mint from 'mint-ui';
import MuseUi from 'muse-ui';
import $ from 'jquery'
import Vant from 'vant';
import VueCookies from 'vue-cookies'
import 'vant/lib/index.css';

import "mint-ui/lib/style.css"
import 'lib-flexible/flexible.js'
import 'muse-ui/dist/muse-ui.css';
import vueiInfinite from 'vue-infinite-scroll'
import AMap from 'vue-amap';
import VueTouch from 'vue-touch'
import {axiosIns} from "./http/httpRequestUtil";
import swal from 'sweetalert'
Vue.prototype.axiosIns = axiosIns;
Vue.use(vueiInfinite);
Vue.use(Mint);
Vue.use(MuseUi);
Vue.use(Vant);
// Vue.use(axios);
Vue.prototype.$ajax = axios;
Vue.use(Vuex);
Vue.use(VueTouch, {name: 'v-touch'});
Vue.use(VueCookies);

Vue.use(VueTouch, {name: 'v-touch'})
Vue.use(AMap);
Vue.prototype.axios = axios;
Vue.prototype.changeData = function () {
    alert('努力开发中！！');
};
Vue.prototype.alertSwal=function (content) {
    swal("至游提示", content);
};
AMap.initAMapApiLoader({
    // 高德key
    key: '063cb9ea9f2c64878b2acee0be65edd3',
    // 插件集合 （插件按需引入）
    plugin: ['AMap.Geolocation']
});
new Vue({
    el: "#app",
    render: h => h(App),
    router, $
});
